	function classificationTree() {
		$.get("<c:url value='/common/categoryTree.html'/>",
			function(data) {
					$("#categoryTree").html(data);
			});
	}

	function findTest(codeKey) {
		$.get("<c:url value='/common/categoryTree.html'/>", { key: codeKey },
			function(data) {
				$("<div id='child" + codeKey + "'><\/div>").appendTo("#" + codeKey);
				$(data).appendTo("#child" + codeKey);
			});
	
		swap(codeKey);
	}
	
	function swap(key) {
		var src = $("#img" + key).attr("src");

		if(src.indexOf("plus") > -1) {
			$("#img" + key).attr({
				src: "<c:url value='/img/tree_minus.gif'/>",
				onClick: "javascript:swap('" + key + "');"
		    });
		    
			$("#child" + key).show();
		} else {
			$("#img" + key).attr({
				src: "<c:url value='/img/tree_plus.gif'/>",
				onClick:" javascript:swap('" + key + "');"
			});
			
			$("#child" + key).hide();
		}
	}	

    $(document).ready(classificationTree);